<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // function func()
        // {
        //     console.log(1)
        // }

        // function func1(name,num)
        // {
        //     console.log(num+" Hello "+name)
        //     return 1;
        // }

        // let ret1=func()
        // console.log(typeof(ret1))

        // let ret2=func1('xiaoming',1)
        // console.log(typeof(ret2))

        // let a=function ()
        // {
        //     console.log(111);
        // }

        // a();

        let num=1;
        function func1()
        {
            //let num=2;
            function func2()
            {
                let num=3;
                console.log(num)
            }
            console.log(num)
        }
        console.log(num)
        func1()
        

    </script>
</body>
</html>